// Token 相关的常量
const TOKEN_KEY = 'token'

// 获取 token
export const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}

// 设置 token
export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}

export const clearToken = ()=>{
  localStorage.removeItem(TOKEN_KEY)
}
